<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>答题详情页</title>
<link rel="stylesheet" type="text/css" href="__CSS__/global.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/manage.css" />
<body class="global_form global_table global_icon global_formList">
<div class="global_head">
<include file="Public/header" />
</div>
<div class="global_width survey_details">
  <div class="content"> 
    <div class="box_title end">
    <input type="hidden" name="paper_id" id="paper_id" value="{$info['paper_info']['id']}" />
      <h2>{$info['paper_info']['name']}</h2>
      <p>{$info['paper_info']['description']}</p>
      <p>总分：{$info['score']} 分</p>
    </div>
    <div class="details" id="details">
    <div id="tem">
        <if condition="count($info['subject_info']) gt 0">
            <foreach name="info['subject_info']" item="subInfo" key="key">
                <div class="question" type="{$subInfo['type']}" title-id="{$subInfo['id']}" score="{$subInfo['score']}">
                    <h3>{++$key}. {$subInfo['title']} <if condition="$subInfo['type'] eq 1"> (单选) <else /> (多选) </if> ({$subInfo['score']}分)
                    </h3>
                    <div class="option">
                    <if condition="count($subInfo['field']) gt 0">
                        <php>foreach($subInfo['field'] as $v) {</php>
                          <p>
                          <if condition="$subInfo['type'] eq 1">
                            <php>if(in_array($v['id'],$subInfo['choose'])){</php>
                                <input type="radio" name="choice" field-id="{$v['id']}" disabled checked />
                            <php>} else {</php>
                                <input type="radio" name="choice" field-id="{$v['id']}" disabled />
                            <php>}</php>
                            <php>if ($v['correct'] == 1) {</php><font color="green"><php>} else if($v['correct'] != 1 && in_array($v['id'],$subInfo['choose'])) {</php><font color="red"><php>} else {</php><font><php>}</php>&nbsp;&nbsp;{$v['title']}</font>
                          <else />
                            <php>if(in_array($v['id'],$subInfo['choose'])){</php>
                                <input type="checkbox" field-id="{$v['id']}" disabled checked />
                            <php>} else {</php>
                                <input type="checkbox" field-id="{$v['id']}" disabled />
                            <php>}</php>
                            <php>if ($v['correct'] == 1) {</php><font color="green"><php>} else if($v['correct'] != 1 && in_array($v['id'],$subInfo['choose'])) {</php><font color="red"><php>} else {</php><font><php>}</php>&nbsp;&nbsp;{$v['title']}</font>
                          </if>
                            </p>
                            <php>}</php>
                        </if>
                        </div>
                    </div>
                </foreach>
        </if>
     </div>
      <!-- <div class="save"> <a class="first" href="javascript:void(0);" onclick="save();">提交试卷</a></div> -->
    </div>
  </div>
</div>
<script src="__STATIC__/jquery-1.9.1.min.js"></script>
</body>
</html>